#pragma once

#include "Core\NervusSharedHeader.h"

namespace Nervus {
	namespace Render {



		class Texture {
			friend class D3D9RenderSystem;
			friend class D3D9Mesh;
			friend class D3D9Sprite;
			friend class D3D11Mesh;
			friend class D3D11Sprite;

		private:;
			string mPath;
			//Array of bytes (ARGB)
			u8* mImageData;
			//Original image size
			u32 mImageWidth, mImageHeight;
			bool mLoaded;
		
			bool loadFromBMP();
		public:
			bool loadImageFromFile();

			Texture(string);
			~Texture();

		};
	}
}